import 'package:p_location/alarm/res/vehicle/obj_alarm_vehicle.dart';

class ResAlarmVehicleDetail {
  ObjAlarmVehicle data;
  int code;

  ResAlarmVehicleDetail({this.data, this.code});

  factory ResAlarmVehicleDetail.fromJson(Map<String, dynamic> json) {
    return ResAlarmVehicleDetail(
      data:
          json['data'] != null ? ObjAlarmVehicle.fromJson(json['data']) : null,
      code: json['code'],
    );
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    if (this.data != null) {
      data['data'] = this.data.toJson();
    }
    return data;
  }
}
